<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        [v-cloak]{
            display: none;
        }
    
    
    </style>
</head>

<body>
    <div id="app" v-cloak>
        <ul>
            <li v-for="(item,i) in userList">
             {{i+1}}.{{item.name}}
             <img :src="item.img" alt="" style="height:100px;height:100px;">
            </li>
        </ul>

    </div>
    <script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
    <script src="https://cdn.bootcss.com/axios/0.19.0-beta.1/axios.min.js"></script>
    <script>
   
    new Vue({
        el:"#app",
        data(){
            return{
                userList:[]

            }
        },
        methods:{
            getUserList(){
                axios.get("userList.json").then(res=>{
                    console.log(res.data)
                    this.userList =res.data
                })
            }

        },
        mounted(){
            this.getUserList()
        }
    })
</script>
</body>
</html>